package com.fuhe.chen.vendingmachine.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
 * 视图层对象:机器中的商品
 */
@Data
@NoArgsConstructor
public class CommodityInMachine {
    /**
     * 主键
     */
    private Integer id;

    /**
     * 商品主键
     */
    private Integer commodityId;


    /**
     * 商品名称
     */
    private String commodityName;

    /**
     * 价格
     */
    private Float price;

    /**
     * 商品分类
     */
    private String categoryName;

    /**
     * 商品状态
     */
    private Integer commodityStatus;

    /**
     * 图片
     */
    private String picture;

    /**
     * 备注
     */
    private String comment;

    /**
     * 数量
     */
    private Integer count;

    /**
     * 数量
     */
    private String specifications;

    /**
     * 机器主键
     */
    private Integer machineId;

    /**
     * 货柜id
     */
    private String containerId;

    public CommodityInMachine(Integer id, Integer commodityId, String commodityName, Float price, String categoryName, Integer commodityStatus,  String comment, Integer count, String specifications, Integer machineId, String containerId) {
        this.id = id;
        this.commodityId = commodityId;
        this.commodityName = commodityName;
        this.categoryName = categoryName;
        this.price = price ;
        this.commodityStatus = commodityStatus;
        this.comment = comment;
        this.count = count;
        this.specifications = specifications;
        this.machineId = machineId;
        this.containerId = containerId;
    }
}
